package com.mc;

import java.awt.*;

public class TestPaint {

    public static void main(String[] args) {
        new MyPaint().loadFrame();

    }
}

class MyPaint extends Frame {
    public void loadFrame() {
        setBounds(100, 100, 200, 300);
        setVisible(true);
    }

    @Override
    public void paint(Graphics g) {
        g.setColor(Color.blue);
        g.drawOval(20, 20, 20, 20);
    }
}
